package cn.com.api.service;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import cn.com.api.entity.ApiReturnGoodsOrder;
import cn.com.api.entity.ApiT_ReturnGoodsOrder;
import cn.com.util.*;

public interface ApiReturnGoodsOrderService {

	// 添加
	public boolean addReturnGoodsOrder(ApiReturnGoodsOrder apiReturnGoodsOrder);

	// 查询
	public Map<String, List<Map<String, Object>>> searHistoryByStatus(
			String uid, String[] status);

	// 更新
	public boolean updateStatusById(String uid, String status);
	// 退货
	public Map<String,Object> returnGoodsOrder(String id,String type,String orderid,String return_order,String duty) throws Exception;
	
	public List<Map<String, Object>> searByStatus(String status,PageInfo pageInfo,String title,String mobile,String stime,String etime);


	/**
	 * 找到退货订单
	 * @param id
	 * @return
	 */
	public ApiT_ReturnGoodsOrder getReturnOrderById(Integer id);
	
	public Integer isReturn(String gid);
	
}
